package ace.module.upms.core.impl.controller.rest.admin;

import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.validation.Valid;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import ace.cmp.rest.spring.data.jdbc.querydsl.core.controller.admin.AbstractAdminRestController;
import ace.cmp.rest.spring.data.jdbc.querydsl.core.controller.sdk.AbstractSdkRestController;
import ace.cmp.security.oauth2.resource.server.core.annotation.PreAuthorizeIsInternalClient;
import ace.cmp.security.oauth2.resource.server.core.annotation.PreAuthorizeIsUserAuthenticated;
import ace.module.upms.core.impl.dao.entity.UpmsApplication;

/**
* 权限应用 admin controller.
*
* @author Caspar
*/
@Tag(name = "权限应用-管理-API")
@PreAuthorizeIsUserAuthenticated
@AllArgsConstructor
@RestController
@RequestMapping(UpmsApplicationAdminController.PATH)
@Valid
public class UpmsApplicationAdminController extends AbstractAdminRestController<UpmsApplication, Long> {
    public static final String PATH = "/upms/upms-application";
}